package org.patto.main.api;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.patto.common.core.api.BaseResponse;
import org.patto.main.api.dto.req.LoginUserReqDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author songchuanfu
 * @ClassName LoginService
 * @qq 18050164315
 * @addres 1802284273@qq.com
 * @微信: wx-suagcf
 */
@Api(tags = "登录接口")
public interface LoginService {
    /**
     * 用户登录接口
     *
     * @param loginUserReqDto loginUserReqDto
     * @return
     */
    @PostMapping("/login")
    @ApiOperation(value = "登录接口", notes = "根据手机号码、密码 实现登录")
    @ApiResponses({
            @ApiResponse(code = 200, message = "登录成功"),
            @ApiResponse(code = 500, message = "登录失败")})
    BaseResponse<JSONObject> login(@RequestBody LoginUserReqDto loginUserReqDto);
}
